package com.kly.user.rulePolicy;

import java.io.Serializable;
import java.util.List;

/**
 * 规则
 * @author linqu
 */
public class Rule implements Serializable {

    private static final long serialVersionUID = 617983659307567853L;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 本条规则最终的决策结果：拒绝、通过
     */
    private Decision decisionResult;
    /**
     * 参与该计算的变量与规则
     */
    private List<Condition> conditions;
    /**
     * conditions各条件的组合方式
     * @see com.kly.user.rulePolicy.enums.ConditionGroupComposeEnum
     */
    private String conditionGroupCompose;

    public Rule() {
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public Decision getDecisionResult() {
        return decisionResult;
    }

    public void setDecisionResult(Decision decisionResult) {
        this.decisionResult = decisionResult;
    }

    public List<Condition> getConditions() {
        return conditions;
    }

    public void setConditions(List<Condition> conditions) {
        this.conditions = conditions;
    }

    public String getConditionGroupCompose() {
        return conditionGroupCompose;
    }

    public void setConditionGroupCompose(String conditionGroupCompose) {
        this.conditionGroupCompose = conditionGroupCompose;
    }
}
